---
layout: "default"
title: "StringInterpolationConvertible"
description: "Swift documentation for 'StringInterpolationConvertible': Conforming types can be initialized with string interpolations."
keywords: "StringInterpolationConvertible,protocol,swift,documentation"
root: "/v2.2"
---

<div class="intro-declaration"><code class="language-swift">protocol StringInterpolationConvertible</code></div>

<div class="discussion comment">
    <p>Conforming types can be initialized with string interpolations
containing <code>\(</code>...<code>)</code> clauses.</p>
</div>

<table class="standard">
<tr>
<th id="inheritance">Inheritance</th>
<td>
<span class="viz"><a href="hierarchy/">View Protocol Hierarchy &rarr;</a></span>
</td>
</tr>



<tr>
<th>Import</th>
<td><code class="language-swift">import Swift</code></td>
</tr>

</table>


<h3>Initializers</h3>
<div class="declaration" id="init-stringinterpolation_">
<a class="toggle-link" data-toggle="collapse" href="#comment-init-stringinterpolation_">init(<wbr>stringInterpolation:)</a> <span class="required">Required</span><div class="comment collapse" id="comment-init-stringinterpolation_"><div class="p">
    <p>Create an instance by concatenating the elements of <code>strings</code>.</p>

    <h4>Declaration</h4>    
    <code class="language-swift">init(stringInterpolation strings: Self...)</code>

    </div></div>
</div>
<div class="declaration" id="init-stringinterpolationsegment_">
<a class="toggle-link" data-toggle="collapse" href="#comment-init-stringinterpolationsegment_">init(<wbr>stringInterpolationSegment:)</a> <span class="required">Required</span><div class="comment collapse" id="comment-init-stringinterpolationsegment_"><div class="p">
    <p>Create an instance containing <code>expr</code>&#39;s <code>print</code> representation.</p>

    <h4>Declaration</h4>    
    <code class="language-swift">init&lt;T&gt;(stringInterpolationSegment expr: T)</code>

    </div></div>
</div>







